﻿using Colorful.Furniture.Permissions;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Modularity;
using Volo.Abp.ObjectExtending;

namespace Colorful.Furniture;

[DependsOn(
    typeof(FurnitureDomainSharedModule),
    typeof(AbpObjectExtendingModule)
)]
public class FurnitureApplicationContractsModule : AbpModule
{
    public override void PreConfigureServices(ServiceConfigurationContext context)
    {
        FurnitureDtoExtensions.Configure();
    }

    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        Configure<AbpPermissionOptions>(options =>
        {
            options.ValueProviders.Add<FurniturePermissionValueProvider>();
        });
    }
    
}
